#ifndef LIGHT_SENSOR_H
#define LIGHT_SENSOR_H

#define DATA_RED			0x40
#define DATA_RED_LOW		0x40
#define DATA_RED_HIGH		0x41
#define DATA_GREEN			0x42
#define DATA_GREEN_LOW		0x42
#define DATA_GREEN_HIGH		0x43
#define DATA_BLUE			0x44
#define DATA_BLUE_LOW		0x44
#define DATA_BLUE_HIGH		0x45
#define DATA_CLEAR			0x46
#define DATA_CLEAR_LOW		0x46
#define DATA_CLEAR_HIGH		0x47

#define INT_RED				0x0A
#define INT_RED_LOW			0x0A
#define INT_RED_HIGH		0x0B
#define INT_GREEN			0x0C
#define INT_GREEN_LOW		0x0C
#define INT_GREEN_HIGH		0x0D
#define INT_BLUE			0x0E
#define INT_BLUE_LOW		0x0E
#define INT_BLUE_HIGH		0x0F
#define INT_CLEAR			0x10
#define INT_CLEAR_LOW		0x10
#define INT_CLEAR_HIGH		0x11

#define CAP_RED				0x06
#define CAP_GREEN			0x07
#define CAP_BLUE			0x08
#define CAP_CLEAR			0x09

#define NUM_SAMPLES			8

void light_sensor_initialize(void);
void read_sensor(void);

void increase_red_capacitance(void);
void increase_green_capacitance(void);
void increase_blue_capacitance(void);

#endif